package com.arron.flyweight;

public class flyweightcode {
    public static void main(String[] args) {
        Integer x = Integer.valueOf(127);
        Integer y = new Integer(127);
        Integer z = Integer.valueOf(127);
        Integer w = new Integer(127);
        System.out.println(x.equals(y));
        System.out.println(x==y);
        System.out.println(x==z);
        System.out.println(w==x);
        System.out.println(w==y);

        Integer x1 = Integer.valueOf(200);
        Integer y1 = Integer.valueOf(200);
        System.out.println(x1==y1);

    }
}
